<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Vue示例</title>

</head>

<body>
<div id="app" style="display: none" v-show="show">
    <label for="name">姓名：</label>
    <input id="name" name="name" placeholder="请输入姓名" type="text" v-model="name" value=""/>
    <h1>你好，{{name}}</h1>
</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script type="text/javascript">
    new Vue({
        el: '#app',
        data: {
            show: true,
            name: ''
        },
        created: function () {

        },
        mounted: function () {

        }
    })
</script>
</body>

</html>